﻿@model Repid.Entity.Basic.BasicFunction

<form id="mfunction-form" class="form-edit" method="post">
    <div class="form-title panel-body">功能信息</div>
    <div class="form-row fn-clear">
        <div class="form-box">
            <input id="mfunction-icon" name="Icon" data-options="prompt:'请选择图标'" value="@Model.Icon" />
            <span class="form-info">当类型为功能按钮时显示的按钮图标。</span>
        </div>
    </div>
    <div class="form-row fn-clear">
        <div class="form-box">
            <input name="Name" class="easyui-textbox" data-options="required:true,prompt:'请填写功能名称'" value="@Model.Name" />
            <span class="form-info">类型为功能按钮时为按钮的文字，类型为权限时仅用于授权区分。</span>
        </div>
    </div>
    <div class="form-row fn-clear">
        <div class="form-box">
            <div class="easyui-radio">
                <div class="form-label">功能类型</div>
                @Easyui.RadioItem("Type", "func", "功能", Model.Type)
                @Easyui.RadioItem("Type", "purview", "权限", Model.Type)
            </div>
            <span class="form-info">具体表示功能的作用类型，一般情况下功能为按钮。</span>
        </div>
    </div>
    <div class="form-row fn-clear">
        <div class="form-box">
            <input name="Func" class="easyui-textbox" data-options="prompt:'请填写功能标记'" value="@Model.Func" />
            <span class="form-info">主要用于关联前端 UI 组件或函数的标记。</span>
        </div>
    </div>
    <div class="form-row fn-clear">
        <div class="form-box">
            <input name="Purview" class="easyui-textbox" data-options="prompt:'请填写权限标记'" value="@Model.Purview" />
            <span class="form-info">对于后台权限有控制的功能，承担权限识别标记的作用。</span>
        </div>
    </div>
    <div class="form-row fn-clear">
        <div class="form-box">
            <input name="Remark" class="easyui-textbox" data-options="multiline:true,prompt:'请填写描述信息',height:80" value="@Model.Remark" />
        </div>
    </div>
    <input name="ID" type="hidden" value="@Model.ID" />
    <input name="Sequence" type="hidden" value="@Model.Sequence" />
    <input name="InsertTime" type="hidden" value="@Model.InsertTime" />
    <input name="UpdateTime" type="hidden" value="@Model.UpdateTime" />
</form>